package www.hrabbit.cn.controller;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.ResponseBody;
import www.hrabbit.cn.service.FileService;

/**
 * 控制层
 */
@Controller
@RequestMapping("hrabbit")
public class FileController {

	@Autowired
	private FileService fileService;

	/**
	 * 将配置文件的json输出到浏览器
	 * @return
	 */
	@RequestMapping(value = "/uploadFile",method = RequestMethod.POST)
	@ResponseBody
	public String index(String base64) {
		return fileService.getFTPProperties(base64);
	}
}
